﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.BTB_StaffUsers
{
    /// <summary>
    /// BTB_StaffUser
    /// </summary>
    [Table("BTB_StaffUser")]
    public class BTB_StaffUser
    {
        /// <summary>
        /// id
        /// </summary>
        [Key, Column(Order = 1)]
        public String id { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public String phone { get; set; }


        /// <summary>
        /// 昵称
        /// </summary>
        public String NickName { get; set; }

        /// <summary>
        ///真实姓名
        /// </summary>
        public String RealName { get; set; }

        /// <summary>
        /// 名字
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public Int32? Sex { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public String Address { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public String HeadPortrait { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        public int? Serial { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public String Password { get; set; }


        /// <summary>
        /// 密码
        /// </summary>
        public String User_YQCode { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public String User_BYQCode { get; set; }

        /// <summary>
        /// 公众号Openid
        /// </summary>
        public String Openid { get; set; }

        /// <summary>
        /// 小程序OpenId
        /// </summary>
        public String AppletOpenId { get; set; }


        /// <summary>
        /// 经度
        /// </summary>
        public String Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public String Latitude { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>CreateTime
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 上一次修改时间
        /// </summary>CreateTime
        public DateTime EditTime { get; set; }

        public Boolean? IsRoot { get; set; } = false;

        /// <summary>
        /// 头像类型(0.相对,1.绝对)
        /// </summary>
        public Int32? HeadType { get; set; } = 0;

        /// <summary>
        /// 状态(0.正常，-1.冻结)
        /// </summary>
        public Int32 State { get; set; } = 0;

        [NotMapped]
        public string verCode { get; set; }

        [NotMapped]
        public string Code { get; set; }
    }
}